package com.lagou.edu.core;

/**
 * @author edward
 * @ProjectName lagou-transfer
 * @Description TODO
 * @time 2022/4/4 10:39 下午
 */
@FunctionalInterface
public interface ObjectFactory<T> {

    /**
     * Return an instance (possibly shared or independent)
     * of the object managed by this factory.
     * @return the resulting instance
     * @throws BeansException in case of creation errors
     */
    T getObject() throws Exception;
}
